import request from '@/config/axios'

// 生成vueui VO
export interface infraLlmVueuiVO {
  id: number // 编号
  cnt: string // 内容
  mark: string // 描述
  delFlag: number // 删除类型
  result: string // 结果
}

// 生成vueui API
export const infraLlmVueuiApi = {
  // 查询生成vueui分页
  getinfraLlmVueuiPage: async (params: any) => {
    return await request.get({ url: `/infra/infra-llm-vueui/page`, params })
  },

  // 查询生成vueui详情
  getinfraLlmVueui: async (id: number) => {
    return await request.get({ url: `/infra/infra-llm-vueui/get?id=` + id })
  },

  // 新增生成vueui
  createinfraLlmVueui: async (data: infraLlmVueuiVO) => {
    return await request.post({ url: `/infra/infra-llm-vueui/create`, data })
  },

  // 修改生成vueui
  updateinfraLlmVueui: async (data: infraLlmVueuiVO) => {
    return await request.put({ url: `/infra/infra-llm-vueui/update`, data })
  },

  // 删除生成vueui
  deleteinfraLlmVueui: async (id: number) => {
    return await request.delete({ url: `/infra/infra-llm-vueui/delete?id=` + id })
  },

  // 导出生成vueui Excel
  exportinfraLlmVueui: async (params) => {
    return await request.download({ url: `/infra/infra-llm-vueui/export-excel`, params })
  }
}